<template>
  <div>
    <h3>子组件----{{ child }}</h3>
    <!-- <button @click="fn2">子组件</button> -->
  </div>
</template>

<script>
export default {
  name: 'VueAdminTemplateChildCom',
  props: {
    child: {
      type: Number,
      required: true
    }
  },
  methods: {
    // 如果没有native,子组件就必须向外抛出一个click事件
    // fn2() {
    //   this.$emit('click')
    // }
  }
}
</script>

<style lang="scss" scoped>

</style>
